#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
    int i = 0, n = 0, tmp = 0, max = 0;
    int arr[200000] = { 0 };
    for (scanf("%d", &i); n < i; n++) {
        scanf(" %d", &tmp);
        arr[tmp] = tmp;
        if (tmp > max)
            max = tmp;
    }
    for (int x = 0; x <= max; x++) {
        if (arr[x])
            printf("%d ", arr[x]);
    }
    return 0;
}